package com.xms.core.enums;

public enum RecordState {
    /**
     * 可用
     */
    Disabled(0, "禁用"),
    /**
     * 禁用
     */
    Enabled(1, "启用");

    RecordState(int value, String msg) {
        this.val = value;
        this.msg = msg;
    }

    public boolean equals(RecordState compared){
        return this.val() == compared.val();
    }

    public int val() {
        return val;
    }

    public String msg() {
        return msg;
    }

    private int val;
    private String msg;
}
